﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserEdit.aspx.cs" Inherits="WebSystem.User.UserEdit" Theme="normal"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
     <title>用户修改</title>
     <link href="../css/StyleforBase.css" type="text/css" rel="stylesheet" />
     <script language="javascript" type="text/javascript">
    
    
//确认用户真实姓名
function chktxtRealName(obj)
{
     var strrealname=obj.value;
     document.getElementById( "errspan1forrealname" ).className = "";
	
	changerealnamePrompt("&nbsp;");
	if( strrealname == "" || strrealname == null ){
	document.getElementById("txtRealName").style.borderColor='red';
		changerealnamePrompt( document.getElementById( "errspan1forrealname" ).innerHTML);
		document.getElementById("errspan1forrealname").className='error';
		return false;
	}
	return true;
  
}
function changerealnamePrompt(strforrealname)
{
    document.getElementById( "divMessageforrealname" ).style.display="";
	document.getElementById( "failinfoforrealname" ).innerHTML = strforrealname;
}
function fLen(Obj){
  var nCNLenth = 0;
  var nLenth = Obj.length;
  for (var i=0; i<nLenth; i++){
    if(Obj.charCodeAt(i)>255){
      nCNLenth += 2; 
    }else{
      nCNLenth++;
    }
  }
  return nCNLenth;
}


//终验
function zongcheck()
{
    
    var zongcheckforall=true;
   

    
    
    
    zongcheckforall=chktxtRealName(document.getElementById("txtRealName"));
    
     if(!zongcheckforall)
    {
        return zongcheckforall;
    }
    
}



</script>
</head>
<body style="background-color:#fcf6ec">
    <form id="form1" runat="server">
    <%--<div class="normalnav">
            <div class="normalcontent">
                用户管理>>>管理员修改资料</div>
        </div>--%>
         <div class="normalnav">
            <div class="normalcontent">
                <span style="color: #ffffff">用户管理>>>管理员信息管理>>></span><span style="color: #f6ff00">管理员修改资料</span>
            </div>
        </div>
         <%--间隔--%>
         <%--<table cellpadding="0" cellspacing="0" border="0" width="800px">
            <tr>
                <td height="20px">
                </td>
            </tr>
         </table>
         <table cellpadding="0" cellspacing="0" border="0" width="800px">
            <tr>
                <td height="20px">
                <font style="color: #426F98; font-family: 宋体; font-weight: bold;font-size: 14px;">管理员修改资料</font>
                </td>
            </tr>
         </table>--%>
         <%--间隔--%>
         <%--<table cellpadding="0" cellspacing="0" border="0" width="800px">
            <tr>
                <td height="20px">
                </td>
            </tr>
         </table>--%>
         <table cellpadding="0" cellspacing="0" border="0" width="800px">
            <!--会员登录名，不可以修改-->
            <tr>
                <td class="leftforregister">
                    登录名：
                </td>
                <td class="centerforregister">
                    <asp:TextBox ID="txtUserNameforregiester" runat="server" Width="184px" MaxLength="20"  ReadOnly=true></asp:TextBox>
                </td>
                <td class="rightforregister">
                    
                </td>
            </tr>
             <tr height="20px">
                <td class="leftforregister">
                    
                </td>
                <td class="jyjgforregister" colspan="2">
                    <div style="display:none">
                    <span></span>
                                   
                    </div>
                </td>
            </tr>
            <!--所属组名称-->
            <tr>
                <td class="leftforregister">
                    请选择角色：
                </td>
                <td class="centerforregister">
                    <asp:DropDownList ID="ddlUserGroupParent" runat="server">
                    </asp:DropDownList>
                    <%--<asp:TextBox ID="txtFolderName" runat="server" Width="184px" MaxLength="64" onfocus="this.style.borderColor='#000000'"  onblur="this.style.borderColor='#A3BFA8';chktxtFolderName(this);"></asp:TextBox>--%>
                    <%--<asp:TextBox ID="txtFolderRemark" runat="server" Width="250px" Height="150px" TextMode="MultiLine"></asp:TextBox>--%>
                </td>
                <td class="rightforregister">
                    <span id="Span1">请选择角色</span><br />
                </td>
             </tr>
              <tr height="20px">
                <td class="leftforregister">
                    
                </td>
                <td class="jyjgforregister" colspan="2">
                    <div style="display:none">
                    <span></span>
                                   
                    </div>
                </td>
            </tr>
            
            <tr style="display:none">
                <td class="leftforregister">
                    请选择所属部门：
                </td>
                <td class="centerforregister">
                    <asp:DropDownList ID="ddl_Unit" runat="server">
                    </asp:DropDownList>
                </td>
                <td class="rightforregister">
                    <span id="Span4" runat="server">请选择所属部门</span><br />
                </td>
             </tr>
              <tr height="20px" style="display:none">
                <td class="leftforregister">
                    
                </td>
                <td class="jyjgforregister" colspan="2">
                    <div style="display:none">
                    <span></span>
                                   
                    </div>
                </td>
            </tr>
         </table>
         <!--会员注册详细资料-->
         <table cellpadding="0" cellspacing="0" border="0" width="800px">
            <!--真实姓名-->
           <tr>
                <td class="leftforregister">
                    真实姓名：
                </td>
                <td class="centerforregister">
                    <asp:TextBox ID="txtRealName" runat="server" Width="184px" MaxLength="20" onfocus="this.style.borderColor='#000000'"  onblur="this.style.borderColor='#A3BFA8';chktxtRealName(this);"></asp:TextBox>
                </td>
                <td class="rightforregister">
                    <span id="errspan1forrealname">请填写真实姓名。</span><br />
                </td>
             </tr>
             <!--真实姓名检测结果-->
            <tr height="20px">
                <td class="leftforregister">
                    
                </td>
                <td class="jyjgforregister" colspan="2">
                    <div  id="divMessageforrealname" style="display:none">
                    <span id="failinfoforrealname"></span>
                                   
                    </div>
                </td>
            </tr>
            
            <!--职位-->
            <tr style="display:none">
                <td class="leftforregister">
                    职位：
                </td>
                <td class="centerforregister">
                    <asp:TextBox ID="txtJoblName" runat="server" Width="184px" MaxLength="20" onfocus="this.style.borderColor='#000000'"
                        onblur="this.style.borderColor='#A3BFA8';" ></asp:TextBox>
                </td>
                <td class="rightforregister">
                    <span id="Span2">请填写职位。</span><br />
                </td>
            </tr>
            <!--职位检测结果-->
            <tr height="20px" style="display:none">
                <td class="leftforregister">
                </td>
                <td class="jyjgforregister" colspan="2">
                    <asp:RequiredFieldValidator
                            ID="RequirestyleLabeltxtJoblName" runat="server" ControlToValidate="txtJoblName"
                            Display="Dynamic" ErrorMessage="<span class=reshow>请填写职位名称</span>"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <!--电话-->
            <tr>
                <td class="leftforregister">
                    手机：
                </td>
                <td class="centerforregister">
                    <asp:TextBox ID="txtPhone" runat="server" Width="184px" MaxLength="20" onfocus="this.style.borderColor='#000000'"
                        onblur="this.style.borderColor='#A3BFA8';"></asp:TextBox>
                </td>
                <td class="rightforregister">
                    <span id="Span3">请填写手机。</span><br />
                </td>
            </tr>
            <!--手机检测结果-->
            <tr height="20px">
                <td class="leftforregister">
                </td>
                <td class="jyjgforregister" colspan="2">
                    <asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPhone"
                            Display="Dynamic" ErrorMessage="<span class=reshow>请填写手机</span>"></asp:RequiredFieldValidator>
                            <span style="color:Red">
                            <asp:Label ID="lblPhone" runat="server"></asp:Label></span>
                </td>
            </tr>
            
            
            
            <%--按钮提交--%>
             <tr>
                <td class="leftforregister">
                    
                </td>
                <td class="jyjgforregister" colspan="2">
                 
                    <asp:ImageButton ID="ibtnedit" runat="server" ImageUrl="../images/Basic/xiugai.gif"
                         ToolTip="修改" OnClientClick="javascript:return zongcheck();" OnClick="ibtnedit_Click"/>修改
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="ibtnback" runat="server" ImageUrl="../images/Basic/fanhui.gif"
                         ToolTip="返回" OnClick="ibtnback_Click" CausesValidation="false"/>返回
                                   

                </td>
            </tr>
         </table>
    
    </form>
</body>
</html>

